'use strict';
const {
  Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
  class Header extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  Header.init({
    categoryName: DataTypes.STRING,
    serviceName: DataTypes.STRING,
    circulation: DataTypes.STRING,
    type: DataTypes.STRING,
    risk: DataTypes.STRING,
    timeLimit: DataTypes.STRING,
    unitName: DataTypes.STRING,
    code: DataTypes.STRING,
    customerName: DataTypes.STRING,
    identityId: DataTypes.STRING,
    channel: DataTypes.STRING,
    location: DataTypes.STRING,
    eLocation: DataTypes.STRING,
    username: DataTypes.STRING,
    acceptedTime: DataTypes.STRING,
    endTime: DataTypes.STRING,
    phoneNumber: DataTypes.STRING,
    bankName: DataTypes.STRING,
    owner: DataTypes.STRING,
    number: DataTypes.STRING,
    notes: DataTypes.STRING,
    auditState: DataTypes.STRING,
    auditSuggest: DataTypes.STRING
  }, {
    sequelize,
    modelName: 'Header',
  });
  return Header;
};